package com.rc.evcharger.service.member;

import com.rc.evcharger.common.base.BaseService;
import com.rc.evcharger.mapper.member.MemberInfoMapper;
import com.rc.evcharger.model.member.MemberInfo;
import com.rc.evcharger.model.member.MemberInfoExample;

import java.math.BigDecimal;

/**
 * Created by sven on 2019/09/23.
 */
public interface MemberInfoService extends BaseService<Long, MemberInfo, MemberInfoExample, MemberInfoMapper> {


    BigDecimal getAccountByChargeType(Long orderId);

    MemberInfo selectCardNo(String cardNo, String tenantCode);

    int selectAccountType(Long memberId);

    MemberInfo selectEnterpriseMemberByMemberId(Long memberId);

    BigDecimal selectPowerLimitByMemberId(String tenantCode , Long memberId);

    void updateMemberInfoStatus(Long memberId);

    int compareLimitSoc(Long memberId, Long elecStationId);
}
